package GUI;

import java.awt.*;
import javax.swing.*;

/**
 * This class creates instance of MainScreen	
 * to display when needed
 * @author Elad
 *
 */
public class MainScreen extends JPanel{
	
	private static final long serialVersionUID = 1L;
	private JButton btnAddRequest;
	private JButton btnEditReq;
	private JButton btnViewRequest;
	private JButton btnAuthManag;
	private JButton btnReports;
	private JButton btnFrozenRequests;
	private JButton btnLogOut;
	
	/**
	 * the constructor
	 */
	public  MainScreen() {
		super();
		btnAddRequest = new JButton("Add request");
		btnEditReq = new JButton("Edit request");
		btnViewRequest = new JButton("View request");
		btnAuthManag = new JButton("Authorization managment");
		btnReports = new JButton("Generate reports");
		btnFrozenRequests = new JButton("Frozen requests managment");
		btnLogOut = new JButton("log out");
		initiate();
		
	}
	/**
	 * This method initializes the MainScreen panel
	 */
	public void initiate(){
		
		JLabel lblMainMenu = new JLabel("Main menu");
		lblMainMenu.setForeground(Color.BLUE);
		lblMainMenu.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblMainMenu.setBounds(162, 31, 247, 50);
		add(lblMainMenu);
		
		btnAddRequest.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnAddRequest.setBounds(107, 72, 220, 46);
		add(btnAddRequest);
		
		btnEditReq.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnEditReq.setBounds(107, 147, 220, 46);
		add(btnEditReq);
		
		btnViewRequest.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnViewRequest.setBounds(107, 219, 220, 46);
		add(btnViewRequest);
		
		btnAuthManag.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnAuthManag.setBounds(107, 376, 220, 46);
		add(btnAuthManag);
		
		btnReports.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnReports.setBounds(107, 297, 220, 46);
		add(btnReports);
		
		btnFrozenRequests.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnFrozenRequests.setBounds(107, 453, 220, 46);
		add(btnFrozenRequests);
		
		btnLogOut.setFont(new Font("Arial", Font.BOLD, 12));
		btnLogOut.setBounds(22, 529, 95, 32);
		add(btnLogOut);

		setLayout(null);
		setSize(new Dimension(459, 572));
	}
	
	/**
	 * 
	 * @return the add request button
	 */
	public JButton getAddRequestButt(){
		return btnAddRequest;
	}
	/**
	 * 
	 * @return the view request button
	 */
	public JButton getViewRequestButt(){
		return btnViewRequest;
	}
	/**
	 * 
	 * @return the edit request button
	 */
	public JButton getEditReqButt(){
		return btnEditReq;
	}
	/**
	 * 
	 * @return the authorization management button
	 */
	public JButton getAuthManagButt(){
		return btnAuthManag;
	}
	/**
	 * 
	 * @return the generate report button
	 */
	public JButton getReportsButt(){
		return btnReports;
	}
	/**
	 * 
	 * @return the frozen request management button
	 */
	public JButton getFrozenRequestsButt(){
		return btnFrozenRequests;
	}
	/**
	 * 
	 * @return the log out button
	 */
	public JButton getLogOutButt(){
		return btnLogOut;
	}
}
